Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APM convenience methods #429

Merged
merged 10 commits into from
Jul 6, 2023
Merged

APM convenience methods #429

merged 10 commits into from
Jul 6, 2023

Conversation

turtledreams
Copy link
Contributor

No description provided.

Copy link
Member

@ArtursKadikis ArtursKadikis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

document more

lib/countly.js Outdated
* This should be used to initialize the SDK with APM feature. It loads necessary scripts before initializing the SDK.
* @param {Object} conf - Countly config object.
*/
function initAfterAPM(conf) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initAfterLoadingAPM

Countly.url = "https://try.count.ly"; //your server goes here
Countly.debug = true;
Countly.apm = true;
// Countly.boomSRC = "../somewhere/boomerang.min.js";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"boomSRC" -> "customSourceBoomerang"

Countly.debug = true;
Countly.apm = true;
// Countly.boomSRC = "../somewhere/boomerang.min.js";
// Countly.clyBoomSRC = "../somewhere/countly_boomerang.js";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"clyBoomSRC" -> "customSourceCountlyBoomerang"

Countly.app_key = "YOUR_APP_KEY";
Countly.url = "https://try.count.ly"; //your server goes here
Countly.debug = true;
Countly.apm = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"apm" -> "loadAPMScriptsAsync"

lib/countly.js Outdated
@@ -180,6 +188,7 @@
var SDK_NAME = "javascript_native_web";

var urlParseRE = /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/;
var shouldLetApmLoading = true; // used to prevent loading apm scripts multiple times.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"shouldLetApmLoading" -> "apmLibrariesAlreadyLoaded"

@ArtursKadikis ArtursKadikis merged commit 9e00967 into staging Jul 6, 2023
3 of 5 checks passed
@ArtursKadikis ArtursKadikis deleted the apm-no-load branch July 6, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants